package pCloud.transport;

import java.io.IOException;
import java.net.ServerSocket;

public class SocketServerTransportHandle implements EndPointTransportHandle{

	ServerSocket serverSock;
	
	
	public void initalize(String hostName, int port) throws IOException{
		serverSock = new ServerSocket(port);		
	}
	@Override
	public TransportHandle accept() throws IOException {
		return new SocketTransportHandle(serverSock.accept());
	}

	@Override
	public TransportHandle connect() throws IOException {
		return null;
	}
	
}
